package com.listener;

import javax.servlet.ServletRequestEvent;
import javax.servlet.ServletRequestListener;
import javax.servlet.annotation.WebListener;

// @WebListener
public class ListenerDemo2 implements ServletRequestListener {

    @Override
    public void requestDestroyed(ServletRequestEvent sre) {
        System.out.println("listener2执行了");
    }

    @Override
    public void requestInitialized(ServletRequestEvent sre) {
        System.out.println("listener2销毁了");
    }
}
